package template;

public abstract class BaseTemplate {
    public final void templateMethod() {
        //步骤:1-2-3
        method1();
        method2();
        method3();
    }
    protected abstract void method1();
    protected abstract void method2();
    protected abstract void method3();
}
